package com.wzy.auth.controller;

import com.wzy.ucenter.model.dto.FindPasswordDto;
import com.wzy.ucenter.service.FindPasswordService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wzy
 * @Date 2024/2/1 16:15
 * @description: 找回密码
 */
@Slf4j
@RestController
public class FindPasswordController {
    @Autowired
    private FindPasswordService findPasswordService;
    @ApiOperation(value = "找回密码", tags = "找回密码")
    @PostMapping("/findpassword")
    public void findPassword(@RequestBody FindPasswordDto findPasswordDto) {
        findPasswordService.FindPassword(findPasswordDto);
        log.info("修改成功");
    }
}
